package Terminal.UI.InterfacceConsulente;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.logging.SimpleFormatter;

import Terminal.Entity.ETaskI;
import Terminal.Entity.ETimeRecordI;
import Terminal.UI.PanelComponent;
import Terminal.UI.PannelloElencoDecoretor;

public class PannelloElencoTimerecord extends PannelloElencoDecoretor {

	public PannelloElencoTimerecord(PanelComponent parent, List array) {
		super(parent, array);
	}

	@Override
	protected String stampaElemento(Object pr) {
		DateFormat dateformat = new SimpleDateFormat("dd-MM-yy HH:mm");
		SimpleDateFormat dateformat2 = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy",Locale.ENGLISH);
		ETimeRecordI p = (ETimeRecordI) pr;
		try{
			Date datetemp= p.getDataInizio();
			return "Timerecord iniziato"+dateformat.format(datetemp);
			}
		catch (Exception e) {return "ERRORE TIMERECORD";}//*/
		
	}
	
	public ETimeRecordI getObjectSelected(){
		return (ETimeRecordI) super.getObjectSelected();
	}



}